//
//  ZuoyeDetailViewController.m
//  projectBase
//
//  Created by 洪梦萍 on 2017/10/21.
//  Copyright © 2017年 洪梦萍. All rights reserved.
//

#import "ZuoyeDetailViewController.h"
typedef NS_ENUM(NSInteger, UI_tag)
{
    back_tag = 2000000,
    tongji_tag,
};

@interface ZuoyeDetailViewController ()

@end

@implementation ZuoyeDetailViewController

-(void)initUI
{
    [super initUI];
    [self setTopTitle:@"作业详情"];
    [self setTopTitleFont:[UIFont systemFontOfSize:25]];
    [self setTopTitleColor:[UIColor whiteColor]];
    UIButton * backBtn_tag = [self createBtn:CGRectMake(ScreenWidth*18/375, ScreenHeight*30/667, ScreenWidth*26/375, ScreenHeight*29/667) title:@"" iconImage:[UIImage imageNamed:@"返回-5-拷贝-20"]backgroundImage:nil tag:back_tag textColor:nil];
    [self.view addSubview:backBtn_tag];
    UIButton * tongjiBtn_tag = [self createBtn:CGRectMake(ScreenWidth*338/375, backBtn_tag.frame.origin.y, 26, 29) title:@"" iconImage:[UIImage imageNamed:@"统计-2"] backgroundImage:nil tag:tongji_tag textColor:nil];
    [self.view addSubview:tongjiBtn_tag];
    
    UIImageView * topBgImg = [[UIImageView alloc]initWithFrame:CGRectMake(0, TopAndSystemHeight-2, ScreenWidth, ScreenHeight*142/667)];
    [topBgImg setImage:[UIImage imageNamed:@"图层-534"]];
    [self.view addSubview:topBgImg];
    
    UILabel * dayPracticeLab = [[UILabel alloc]initWithFrame:CGRectMake(0, 2, ScreenWidth, ScreenWidth*26/375)];
    dayPracticeLab.text = @"日常练习题";
    dayPracticeLab.textAlignment = NSTextAlignmentCenter;
    dayPracticeLab.textColor = [UIColor whiteColor];
    [topBgImg addSubview:dayPracticeLab];
    
    UILabel * baifenshuLab = [self createLabel:CGRectMake(0, dayPracticeLab.frame.origin.y+dayPracticeLab.frame.size.height+ScreenHeight*25/1350, ScreenWidth, ScreenHeight*33/667) title:@"89%" fontSize:35 textColor:[UIColor whiteColor]];
    baifenshuLab.textAlignment = NSTextAlignmentCenter;
    [topBgImg addSubview:baifenshuLab];
    
    UILabel * avgLab = [self createLabel:CGRectMake(ScreenWidth*78/375, ScreenHeight*50/667, ScreenWidth*80/375, ScreenHeight*15/667) title:@"平均正确率" fontSize:15 textColor:[UIColor whiteColor]];
    [topBgImg addSubview:avgLab];
    
    UIImageView * yellowImg = [[UIImageView alloc]initWithFrame:CGRectMake(ScreenWidth*155/375, baifenshuLab.frame.origin.y+baifenshuLab.frame.size.height+ScreenHeight*32/1350, ScreenWidth*53/375, ScreenHeight*20/667)];
    [yellowImg setImage:[UIImage imageNamed:@"圆角矩形-540-拷贝-2"]];
    [topBgImg addSubview:yellowImg];
    
    UILabel * classLab = [self createLabel:CGRectMake(2, ScreenHeight*1/667, yellowImg.frame.size.width, yellowImg.frame.size.height) title:@"一年一班" fontSize:12 textColor:[UIColor whiteColor]];
    [yellowImg addSubview:classLab];
    
    UILabel * jieshiLab = [self createLabel:CGRectMake(ScreenWidth*237/375, yellowImg.frame.size.height+yellowImg.frame.origin.y+ScreenHeight*22/1350, ScreenWidth-ScreenWidth*237/667-13, ScreenHeight*16/667) title:@"*本分析仅针对客观题" fontSize:15 textColor:[UIColor whiteColor]];
    [topBgImg addSubview:jieshiLab];
    

}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
